//index.js
Page({
  data: {
    userInfo: {},
    ad:['../img/ad.jpg','../img/ad.jpg','../img/ad.jpg'],
    card: [{ icon: '../img/ca1.jpg', name: '一卡通介绍', url: '../article/article' }, { icon: '../img/ca2.jpg', name: '一卡通功能', url: '../article/article' }, { icon: '../img/ca3.png', name: '购买一卡通', url: '../buycard/buycard' }, { icon: '../img/ca4.jpg', name: '商品集合', url: '../list/list' }]
 
  
  },
  //事件处理函数
 road:function(e){
   let url = e.currentTarget.dataset.url;
   wx.navigateTo({
     url: url
   })
 },
  onLoad: function () {

  },
  onReady:function(){ 	 

  }
})
